<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link href="css/jquery.idcode.css" type="text/css" rel="stylesheet">
	</head>
	<body>
		<input type="text" id ="Txtidcode" ><span id="idcode"></span>
		<input type="button" id="butn" value="提交">
	</body>
	
	<script src="js/jquery-1.12.3.min.js"></script>
	<script src="js/jquery.idcode.js"></script>
	<script>
		$.idcode.setCode();   //加载生成验证码方法
		
		$("#butn").click(function(){
	        var IsBy = $.idcode.validateCode()  //调用返回值，返回值结果为true或者false
	        if(IsBy){
	            console.log("验证码输入正确")
	        }else {
	            console.log("请重新输入")
	        }
	    })
	</script>
</html>
